import request from '@/utils/request'

export function queryByPage(data) {
  return request({
    url: '/materialInfoUse/queryByPage',
    method: 'post',
    data
  })
}

export function batchInsert(data) {
  return request({
    url: '/materialInfoUse/insertBatch',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/materialInfoUse/update',
    method: 'post',
    data
  })
}

export function deleteById(params) {
  return request({
    url: '/materialInfoUse/deleteById',
    method: 'get',
    params
  })
}

export function queryList(data) {
  return request({
    url: '/materialInfo/queryByPage',
    method: 'post',
    data
  })
}

export function queryData(data) {
  return request({
    url: '/materialProjectsRelation/queryByPage',
    method: 'post',
    data
  })
}

export function insertBatch(data) {
  return request({
    url: '/materialProjectsRelation/insertBatch',
    method: 'post',
    data
  })
}

export function del(params) {
  return request({
    url: '/materialProjectsRelation/deleteById',
    method: 'get',
    params
  })
}

export function edit(data) {
  return request({
    url: '/materialProjectsRelation/update',
    method: 'post',
    data
  })
}